<template>
  <div class="bread-crumb">
    <el-breadcrumb separator="/">
      <template v-for="item in breadCrumbs" :key="item.name">
        <el-breadcrumb-item :to="{ path: item.path }">{{
          item.name
        }}</el-breadcrumb-item>
      </template>
    </el-breadcrumb>
  </div>
</template>

<script setup lang="ts">
import type { PropType } from 'vue'
import { defineProps } from 'vue'
import { IBreadCrumb } from './types/types'
defineProps({
  breadCrumbs: {
    type: Array as PropType<IBreadCrumb[]>,
    default: () => []
  }
})
</script>

<style lang="less" scoped></style>
